import yagmail
def send_mail(file):
    mail=yagmail.SMTP(user="3549886256@qq.com",password="crhghahoazbucjdf",host="smtp.qq.com")
    mail.send(to="3549886256@qq.com",subject="维度电商系统商品评论接口测试报告",contents="维度电商系统商品评论接口测试报告",attachments=file)